public class Test3_11 {

    public static void main(String[] args) {
        int sum1=0;
        int sum2 =0;
        for(int i=1;i<=100;i++) {

            if(i%2!=0) {
                sum1+=i;
            }
            else {
                sum2+=i;
            }
        }
        System.out.println(sum1);
        System.out.println(sum2);

    }
    public static void main3(String[] args) {
        for (int a = 0; a <=10; a++) {
            System.out.println(a);
            System.out.println(a);


        }
    }
    public static void main2(String[] args) {
        int a=1;
        while(a<=100) {

            if(a%3==0&&a%5==0){
                System.out.println(a);
                a++;
                continue;
            }
            else {
                a++;
            }

        }


    }
    public static void main1(String[] args) {
        int a=1;
        while (a<=10)
        {
            if (a==3) {
                continue;//死循环
            }
            System.out.println(a);
            a++;
        }
    }
}
